package com.example.print.other;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

@Deprecated
public class ScreenReceiver extends BroadcastReceiver {
	private static final String TAG = "uhf_demo.ScreenReceiver";
	private Context mContext;

	@Override
	public void onReceive(final Context context, Intent intent) {

		mContext = context;
		if (Intent.ACTION_SCREEN_OFF.equals(intent.getAction())) {
			Log.d(TAG, "ACTION_SCREEN_OFF-->,name=" + intent.getAction());
			//App.mConnect = false;
		} else if (Intent.ACTION_USER_PRESENT.equals(intent.getAction())) {
			Log.d(TAG, "USER_PRESENT-->,name=" + intent.getAction());
		}
	}
}
